package cn.kgc.itrip.util;

import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.SerializationFeature;

import java.text.SimpleDateFormat;

/**
 * @author 阿泽
 * @Date 2019/9/23 15:40
 */
public class MapperDate extends ObjectMapper {
    public  MapperDate(){
        this.configure(SerializationFeature.WRITE_DATE_KEYS_AS_TIMESTAMPS,false);
        this.setDateFormat(new SimpleDateFormat("yyyy-MM-dd"));
    }

}
